package com.tx.framework.util;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

public class TxtUtil {

	public static String readTXT(String path) {
		File file = new File(path);
		StringBuilder result = new StringBuilder();
		try {
			BufferedReader br = new BufferedReader(new FileReader(file));
			String s = null;
			while ((s = br.readLine()) != null) {
				result.append(s);
			}
			br.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return result.toString();
	}
}
